package com.recruit.server.service;

import com.recruit.server.common.HeaderInfo;
import com.recruit.server.request.cart.AddCartRequest;
import com.recruit.server.request.cart.ListCartRequest;
import com.recruit.server.request.cart.UpdateCartRequest;
import com.recruit.server.response.cart.AddCartResponse;
import com.recruit.server.response.cart.ListCartResponse;
import com.recruit.server.response.cart.UpdateCartResponse;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

public interface ICartService {

    ListCartResponse list(ListCartRequest request, HeaderInfo headerInfo);

    AddCartResponse add(@Validated @RequestBody AddCartRequest request, HeaderInfo headerInfo);

    UpdateCartResponse update(@Validated @RequestBody UpdateCartRequest request, HeaderInfo headerInfo);
}
